package org.hhgzs.modules.erp.mapper;

import org.apache.ibatis.annotations.Param;
import org.hhgzs.modules.erp.entity.MaterialExtend;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.hhgzs.modules.erp.vo.MaterialExtendVo4List;

import java.util.List;

/**
 * <p>
 * 产品价格扩展 Mapper 接口
 * </p>
 *
 * @author peiqy
 * @since 2021-07-14
 */
public interface MaterialExtendMapper extends BaseMapper<MaterialExtend> {

    int batchDeleteMaterialExtendByIds(@Param("ids") String ids[]);

    List<MaterialExtendVo4List> getDetailList(
            @Param("materialId") Long materialId);

    Long getMaxTimeByTenantAndTime(
            @Param("tenantId") Long tenantId,
            @Param("lastTime") Long lastTime,
            @Param("syncNum") Long syncNum);

    List<MaterialExtend> getListByMId(@Param("ids") Long ids[]);

    int batchDeleteMaterialExtendByMIds(@Param("ids") String ids[]);
}
